package g_redis

type RedisBuilderInterface interface {

	/*
		SetCluster 设置是否为集群模式 默认为 false
	*/
	SetCluster(isCluster bool) RedisBuilderInterface
	GetCluster() bool

	/*
		SetHost 设置ip,主要为ip:port
	*/
	SetHost(host string) RedisBuilderInterface
	GetHost() string

	/*
		SetPassWord 设置密码
	*/
	SetPassWord(pwd string) RedisBuilderInterface
	GetPassWord() string

	/*
		SetDb 设置数据库
	*/
	SetDb(db int) RedisBuilderInterface
	GetDb() int

	/*
		SetMaxRetries 设置最大重试次数
	*/
	SetMaxRetries(maxRetries int) RedisBuilderInterface
	GetMaxRetries() int

	/*
		SetPoolSize 设置连接池大小
	*/
	SetPoolSize(poolSize int) RedisBuilderInterface
	GetPoolSize() int

	/*
		SetReadTimeOut 设置读取超时时间
	*/
	SetReadTimeOut(readTimeout int) RedisBuilderInterface
	GetReadTimeOut() int

	/*
		SetPoolTimeOut 设置连接池超时时间
	*/
	SetPoolTimeOut(poolTimeout int) RedisBuilderInterface
	GetPoolTimeOut() int

	/*
		SetDialTimeOut 设置建立连接超时时间
	*/
	SetDialTimeout(dialTimeout int) RedisBuilderInterface
	GetDialTimeOut() int
}
